#include "copter.h"

NXMFC::copter gCopter;

using namespace NXMFC;

copter::copter()
{
    _armed = false;
    _thr = 0;
}

bool copter::armed()
{
    return _armed;
}

void copter::setArmed(bool a)
{
    _armed = a;
}

void copter::setThrottle(float t)
{
    if (t < 0)
        t = 0;
    if (t > 1)
        t = 1;

    _thr = t;
}

float copter::throttle()
{
    return _thr;
}
